export const setStor = (keyword, content) => {
   if (!keyword) return;
   localStorage.setItem(keyword, JSON.stringify(content))
}

export const getStor = keyword => {
   if (!keyword) return;
   return JSON.parse(localStorage.getItem(keyword))
}

export const removeStor = keyword => {
   if (!keyword) return;
   localStorage.removeItem(keyword)
}

export const loginSignOut = code => {
   if (!code) return;
   if (code === 5002) {
      _this.$router.replace({
         path: '/'
      })
   }
}